/**
 * 
 */
package com.shine.icis.hbean;

import java.io.Serializable;

import com.shine.icis.config.SysCodeDictLoader;

/**
 * 报送的文件列表
 * @author zsy
 *
 */
public class SubmitFile implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 8583902305170002018L;
	private String id;//主键
	private String fileCode;//文件编码
	private String fileName;//文件名称
	private long dataCount;//记录总数
	private String backPath;//备份地址
	private String remark;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFileCode() {
		return fileCode;
	}
	public String getFileFullName() {
		if (fileCode == null) {
			return null;
		}
		String name = SysCodeDictLoader.getInstance().getFileDictText(fileCode);
		return name == null ? fileCode : name;
	}
	public void setFileCode(String fileCode) {
		this.fileCode = fileCode;
	}
	public String getFileName() {
		return fileName;
	}
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}
	public long getDataCount() {
		return dataCount;
	}
	public void setDataCount(long dataCount) {
		this.dataCount = dataCount;
	}
	public String getBackPath() {
		return backPath;
	}
	public void setBackPath(String backPath) {
		this.backPath = backPath;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final SubmitFile other = (SubmitFile) obj;
		if (id == null) {
//			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	
}
